package top.zsc.cloud.demo.system.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import top.zsc.cloud.demo.system.po.Dept;

import java.util.List;

/**
 * <h3>系统管理微服务提供者接口</h3>
 *
 * @author Enzo
 * @params
 * @date 2019-4-17  19:57
 * @return
 */
@FeignClient(value = "SYSTEM-PROVIDER")
public interface DeptClientService {

    @PostMapping("dept/insert")
    int insert(Dept dept);

    @PostMapping(value = "dept/update")
    int update(Dept dept);

    @GetMapping("dept/selectAll")
    List<Dept> selectAll();

    @GetMapping("dept/selectByPk/{deptId}")
    Dept selectByPk(@PathVariable("deptId") Integer deptId);

    @PostMapping("dept/selectByDept")
    List<Dept> selectByDept(Dept dept);

}
